/**
 * Alibaba.com.cn Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.hiv.mapper;

import com.hiv.mapper.domain.ReportCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @author zhanghong
 * @version ReportCodeMapper.java, v 0.1 2023/4/2 14:26 下午 ReportCodeMapper Exp $$
 */
@Mapper
@Repository
public interface ReportCodeMapper {

    @Select("select * from report_code where type='VL' limit 1")
    ReportCode queryDiseaseReportCode();

    @Select("select * from report_code where type='VS' limit 1")
    ReportCode queryDrugReportCode();

    @Update("update report_code set current=#{current} where id=#{id}")
    Integer update(@Param("id") Long id, @Param("current") Integer current);
}
